﻿/*************************************************************************************
 * 文 件 名:   Test_TaskUse
 * 
 * 描    述:   HK_TaskSystem测试脚本
 * 
 * 版    本：  V1.0
 * 创 建 者：  京产肠饭
 * 创建时间：  2023/3/13
 * 链   接：  https://gitee.com/JingChanChangFan/hk_-unity-tools
*************************************************************************************/

using UnityEngine;
using QFramework;
using HKTools;

public class Test_TaskUse : HK_TaskSystemController
{
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Escape))
        {
            this.SendCommand<CMD_BreakOffTaskList>();
        }

        if (Input.GetKeyDown(KeyCode.P))
        {
            this.SendCommand<CMD_StopTaskAudio>();
        }

        if (Input.GetKeyDown(KeyCode.F1))
        {
            this.SendCommand(new CMD_StartNewTaskList("到应聘公司"));
        }

        if (Input.GetKeyDown(KeyCode.Alpha1))
        {
            this.SendCommand(new CMD_AchieveCondition(HK_ConditionType.C1_1到电梯门口));
        }

        if (Input.GetKeyDown(KeyCode.Alpha2))
        {
            this.SendCommand(new CMD_AchieveCondition(HK_ConditionType.C1_2跟门卫打招呼));
        }

        if (Input.GetKeyDown(KeyCode.Alpha3))
        {
            this.SendCommand(new CMD_AchieveCondition(HK_ConditionType.C2_1按电梯按键));
        }

        if (Input.GetKeyDown(KeyCode.Alpha4))
        {
            this.SendCommand(new CMD_AchieveCondition(HK_ConditionType.C2_2走到光圈位置));
        }

        if (Input.GetKeyDown(KeyCode.Alpha5))
        {
            this.SendCommand(new CMD_AchieveCondition(HK_ConditionType.C3_1选择指示标));
        }

        if (Input.GetKeyDown(KeyCode.F2))
        {
            this.SendCommand(new CMD_StartNewTaskList("参与面试"));
        }

        if (Input.GetKeyDown(KeyCode.Q))
        {
            this.SendCommand(new CMD_AchieveCondition(HK_ConditionType.C4_1回答问题1));
        }

        if (Input.GetKeyDown(KeyCode.W))
        {
            this.SendCommand(new CMD_AchieveCondition(HK_ConditionType.C4_2回答问题2));
        }

        if (Input.GetKeyDown(KeyCode.E))
        {
            this.SendCommand(new CMD_AchieveCondition(HK_ConditionType.C5_1做笔试题1));
        }

        if (Input.GetKeyDown(KeyCode.R))
        {
            this.SendCommand(new CMD_AchieveCondition(HK_ConditionType.C5_2做笔试题2));
        }
    }
}
